<?php 
$this->_toolbar = array(
		'title'		=>	Yii::t('app', 'Elements Translate Manager'),
		'buttons'	=>	array(
			CHtml::link(Yii::t('app','Delete'), "", array("id"=>"delete", "class"=>"button-s del", "onclick"=>"CoreJs.deleteAll('".Yii::app()->createUrl('/admin_Translate/filterTranslate/delMulti')."','".Yii::t('app','Are you sure you want to delete item?')."')")),
		)
);

$params = HelpTranslate::Params();
$languages = Yii::app()->params['languages'];
$languages_default = Yii::app()->params['language_default'];
$params_filter = array(
			'key'=>'ct1',
			'language'=>'en',
		);
if(Yii::app()->user->hasState('paramsTrans')){
	$params_filter = Yii::app()->user->getState('paramsTrans');
}
?>
<div>
<form action="<?php echo Yii::app()->createUrl('admin_Translate/filterTranslate/Filterlayout');?>" method="post">
<label><?php echo Yii::t('app','Languages')?></label>
<select name="language">
<?php foreach ($languages as $key => $value):?>
<?php if($key!=$languages_default):?>
<option value="<?php echo $key;?>" <?php if($params_filter['language']==$key) echo 'selected';?>><?php echo $value;?></option>
<?php endif;?>
<?php endforeach;?>
</select>

<label><?php echo Yii::t('app','Content Type')?></label>
<select name="contentType">
<?php foreach ($params as $key => $value):?>
<option value="<?php echo $key;?>" <?php if($params_filter['key']==$key) echo 'selected';?>><?php echo $value['name'];?></option>
<?php endforeach;?>
</select>
<button class="button-s" type="submit"><?php echo Yii::t('app','Submit')?></button>
</form>
</div>